package com.daiziru.wuyanmall.service;

import com.daiziru.wuyanmall.entity.Orders;
import com.daiziru.wuyanmall.vo.ResultVO;

import java.sql.SQLException;
import java.util.Map;

/**
 * 作者：無言
 * 时间：2022/3/19 17:31
 * 描述：永无BUG
 */
public interface OrderService {

    public Map<String,String > addOrder(String cids, Orders orders) throws SQLException;

    public int updateOrderStatus(String orderId, String status);


    public ResultVO getOrderById(String orderId);

    public void closeOrder(String orderId);

    public ResultVO listOrders(String userId, String status, int pageNum, int limit);

    public ResultVO addWaitPayOrder(String orderId, String payUrl);

    public ResultVO selectWaitPayOrderId(String orderId);

    public ResultVO getOrderTotalAmountById(String orderId);

    public ResultVO deleteOrderByOrderId(String orderId);




}
